home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / BARNET / ARMLINUX / MAIL / 9801 / text0026.txt < prev    next >
Encoding:
Text File  |  1998-01-31  |  877 b   |  21 lines

  1. > In the short term we need to either use -mshort-load-bytes if it works, and 
  2. > fix the kernel if not.  In the longer term we might be able to persuade gcc to 
  3. > generate the right code automatically.
  4.  
  5. Fixing the kernel is a non option for every case I think. What I've
  6. suggested to Russell is this for later ARM chips
  7.  
  8. o    Compile with gcc 2.8 without -mshort-load-bytes
  9. o    In kernel space take exceptions on unaligned load/store (since there
  10.     should be almost none)
  11. o    Instrument the ones we get and write little unaligned load
  12.     macros for the ones that show a lot (ie ether_type_trans)
  13.  
  14. Fixing gcc is hard - it means fixing the __attribute(packed)) bug in the ARM so
  15. that it works properly and potentially adding an __attribute(unaligned) 
  16. to the compiler.
  17.  
  18. By taking alignment traps now gcc wont generate them all the time its
  19. realistic to make AX.25 and IPX work on the ARM
  20.  
  21.